using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 可验证设置
    /// </summary>
    public class VerifiableSet : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        [Required(ErrorMessage = "设备编码不能为空")]
        public Guid DeviceId { get; set; }
        [ForeignKey("DeviceId")]
        public virtual Device Device { get; set; }
        /// <summary>
        /// 校验类型名称
        /// </summary>
        [Required(ErrorMessage = "校验类型名称不能为空")]
        public VerifiableTypeEnum VerifiableType { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用不能为空")]
        public bool IsEnabled { get; set; }
    }
}
